home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CPIO User Commands CPIO
-
-
-
- NNAAMMEE
- cpio - copy file archives in and out
-
- SSYYNNOOPPSSIISS
- ccppiioo --oo [ aaBBccvv ]
- ccppiioo --ii [ bbBBccddffmmrrssSSttuuvv66 ] [ _p_a_t_t_e_r_n_s ]
- ccppiioo --pp [ aaddllmmuuvv ] _d_i_r_e_c_t_o_r_y
-
- DDEESSCCRRIIPPTTIIOONN
- ccppiioo copies files in to and out from a ccppiioo copy archive.
- The archive (built by `ccppiioo --oo') contains pathname and
- status information, along with the contents of one or more
- archived files.
-
- OOPPTTIIOONNSS
- --oo Copy out an archive. Read the standard input for a
- list of pathnames, then copy the named files to the
- standard output in archive form - including pathname
- and status information.
-
- aa Reset the access times of input files after they
- have been copied.
-
- BB Output is to be blocked at 5120 bytes to the
- record. This does not apply to the _p_a_s_s option.
- This option is only meaningful with data directed
- to raw magnetic devices, such as `//ddeevv//rrmmtt?'.
-
- cc Write _h_e_a_d_e_r information in ASCII character form
- for portability.
-
- vv Verbose. A list of filenames is displayed. When
- used with the tt option, the table of contents
- looks like the output of an `llss --ll' command (see
- llss(1V)).
-
- --ii Copy in an archive. Read in an archive from the stan-
- dard input and extract files with names matching
- filename substitution _p_a_t_t_e_r_n_s, supplied as arguments.
-
- _p_a_t_t_e_r_n_s are similar to those in sshh(1) or ccsshh(1), save
- that within ccppiioo, the metacharacters `??', `**' and `[[
- ... ]]' also match the `//' (slash) character. If no
- _p_a_t_t_e_r_n_s are specified, the default is ** (select all
- files).
-
- bb Swap both bytes and half-words after reading in
- data.
-
- BB Input is to be blocked at 5120 bytes to the
- record. This does not apply to the _p_a_s_s option.
- This option is only meaningful with data received
-
-
-
- Sprite v1.0 6 September 1988 1
-
-
-
-
-
-
- CPIO User Commands CPIO
-
-
-
- from raw magnetic devices, such as `//ddeevv//rrmmtt?'.
-
- dd Create directories as needed.
-
- ff Copy in all files except those matching _p_a_t_t_e_r_n_s.
-
- mm Retain previous file modification time. This
- option is ineffective on directories that are
- being copied.
-
- rr Interactively rename files. If the user types a
- null line, the file is skipped. May not be used
- with the --pp option.
-
- ss Swap bytes after reading in data.
-
- SS Swap halfwords after reading in data.
-
- tt Print a table of contents of the input archive.
- No files are created.
-
- uu Copy unconditionally. Normally, an older file
- will not replace a newer file with the same name.
-
- 66 Process UNIX Version-6 files.
-
- --pp One pass. Copy in and out in a single operation. Des-
- tination pathnames are interpreted relative to the
- named _d_i_r_e_c_t_o_r_y.
-
- ll Whenever possible, link files rather than copying
- them.
-
- EEXXAAMMPPLLEESS
- To copy the contents of a directory into an archive:
-
- eexxaammppllee%% llss || ccppiioo --oo >> //ddeevv//mmtt00
-
- To read a cpio archive from a tape drive:
-
- eexxaammppllee%% ccppiioo --iiccddBB << //ddeevv//rrmmtt00
-
- To duplicate the oollddddiirr directory hierarchy in the nneewwddiirr
- directory:
- eexxaammppllee%% ccdd oollddddiirr
- eexxaammppllee%% ffiinndd .. --ddeepptthh --pprriinntt || ccppiioo --ppddll nneewwddiirr
-
- The trivial case
- eexxaammppllee%% ffiinndd .. --ddeepptthh --pprriinntt || ccppiioo --ooBB >>//ddeevv//rrmmtt00
-
- can be handled more efficiently by:
-
-
-
-
- Sprite v1.0 6 September 1988 2
-
-
-
-
-
-
- CPIO User Commands CPIO
-
-
-
- eexxaammppllee%% ffiinndd .. --ccppiioo //ddeevv//rrmmtt//00mm
-
- ccppiioo archive tapes from other sites may have bytes swapped
- within the archive. Although the --iiss option only swaps the
- data bytes and not those in the header ccppiioo recognizes tapes
- like this and swaps the bytes in the header automatically.
-
- SSEEEE AALLSSOO
- aarr(1V), ccsshh(1), ffiinndd(1), llss(1V), sshh(1), ttaarr(1), ccppiioo(5)
-
- BBUUGGSS
- ccppiioo does not support multiple volume tapes.
-
- Pathnames are restricted to 128 characters. If there are
- too many unique linked files, ccppiioo runs out of memory and
- linking information is lost thereafter. Only the super-user
- can copy special files.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 6 September 1988 3
-
-
-
-